<%@ page language="java"  pageEncoding="utf-8"%>
<%@ page import="com.ejoysoft.wlanyz.business.Ac,java.util.Iterator,java.util.Set,java.util.ArrayList,java.util.Map,com.ejoysoft.wlanyz.business.Testpjmanage,com.ejoysoft.wlanyz.business.Ap,com.ejoysoft.common.Constants,com.ejoysoft.common.exception.NoRightException" %>
<%@page import="java.util.Vector"%>
<%@ include file="../include/jsp/head.jsp"%>

<%
if(!globa.userSession.hasRight("10015"))
      throw new NoRightException("用户不具备操作该功能模块的权限，请与系统管理员联系！");
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Testpjmanage obj1=new Testpjmanage(globa);

%> 

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script src="../scripts/jsframework.js"></script>
<script language="JavaScript" src="../js/jquery-1.4.1.min.js"></script>
<script src="../include/js/chkFrm.js"></script>
<script src="../scripts/jquery-1.4.1.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
body {
	background-color: #f2f8ff;
}
.sel1{ width:160px;}
.STYLE1 {color: #FF0000}
a{ font-size:12px; color:#214263; text-decoration:none; }
a:hover{ font-size:12px; color:#ffffff; background-color:#ff9900; text-decoration:none;display:block;} 
</style>

<script language="javascript">

    function chkFrm() { 
    if(trim(frm.strProjectName.value)=="") {
       alert("请输入测试项名称！！！")
       frm.strProjectName.focus();
       return false;
        }
                   
  	frm.submit();         
    }




</script>
</head>

<body>

<form name="frm" method=post action="testpjmanage_act.jsp"  >

<input type="hidden" name="<%=Constants.ACTION_TYPE%>" value="<%=Constants.ADD_STR%>"></input>

<div class="lf_list">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="bottom" />&nbsp;<font size="2px">您现在所在的位置：</font><font color="#0e7cc9" size="2px">资源管理 </font><font size="2px">&gt; AP任务查询</font><font size="2px">&gt; 添加任务</font></td>
  </tr>
</table>
<table id="tb" width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr> <td class="listtit1"align="left">&nbsp; &nbsp;<font size="2px"> 添加测试项</font></td>
</tr>
 
  <tr>
    <td bgcolor="#FFFFFF" class="listd" style="border-left:1px solid #dddddd;border-right:1px solid #dddddd;">&nbsp;
   
    <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">        
     <tr>
       <td >
       <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 0px 2px 0px;">
       <tr>
	     <td width="4%" align="left" >
	     </td>

		</tr>
       </table></td></tr>

          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
             <td width="35%" height="30" align="right" class="left_txt2" ><font size="2px">测试项名称 ：</font></td>
             <td width="3%">&nbsp;</td>
            <td width="40%" height="30">
            
            <select id="strProjectName" name="strProjectName"   style="width:215px"  class="input_box"  >
            <option value=''>- - - - -请选择- - - - -</option>
              <%
                  //从全局变量中读取参数类型
                  String[] projectTypes = {"信号强度测试","AP关联测试","漫游测试","隔离测试","WEB认证","PEAP认证","PING测试","FTP测试","HTTP测试"};
                  for (int i = 0; i < projectTypes.length; i++) {
              %>
                <option value="<%=projectTypes[i]%>"><%=projectTypes[i]%></option>
              <%
                  }
              %>                
         </select></td>
         </tr>
        
      <tr>
            <tr>
               <td width="35%" height="30" align="right" class="left_txt2"><font size="2px">测试项描述：</font></td>
                <td width="3%">&nbsp;</td>
                <td align="left">
                      <textarea id="strProjectNote" name="strProjectNote"   class="input_box" rows="5" cols="25"/></textarea>
            </td> </tr>
            <tr>
              <td height="30" colspan="3">&nbsp;</td>
            </tr>
            </table>
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td width="3%" >&nbsp; <br></td>
              <td width="44%" height="20" align="right"> <input name="B1" type="button"   value="确  定" onclick="chkFrm()"  class="ipt2" /></td>
              <td width="3%" >&nbsp; <br></td>
               <td width = "6%"><input type="button"  onclick="window.location.href='testpjmanage_list.jsp';" value="返 回" class="ipt2" style="cursor:hand"/></td>
               <td width="3%" >&nbsp; <br></td>
               <td width="32%" height="20"><input  name="B12" type="reset"  value="取  消" class="ipt2" /></td>
               <td height="30" class="left_txt2">&nbsp;</td>               
            </tr> 
            </table>
            </td>
          </tr>
        </table>
  
</td>
  </tr>
 
</table>
 </div>
<p><br />
</p>
    </form>
 
</body>
</html>
<%@ include file="../include/jsp/footer.jsp"%>
